<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
    />
    <link rel="icon" href="/favicon.ico" />
    <title>Vite App</title>
  </head>
  <body>
    <div id="app"></div>
    <script>
            //获取屏幕宽度
      let htmlwidth=document.documentElement.clientWidth || document.body.clientWidth;
      let htmlDom=document.getElementsByTagName('html')[0];
      //设置html的font-size,通常以iPhone6的375px为准，font-size为37.5px
      htmlDom.style.fontSize=Math.round(htmlwidth/23.43)+'px';
      window.onresize=function(){
          let htmlwidth=document.documentElement.clientWidth ||     document.body.clientWidth;
          htmlDom.style.fontSize=Math.round(htmlwidth/23.43)+'px';
      }
    </script>
    <script src="/reqrcode.js"></script>
    <script type="module" src="/src/main.js"></script>
  </body>
</html>
